package com.ruoyi.common.exception.tenant;

import com.ruoyi.common.exception.base.BaseException;

/**
 * @author cpleo
 */
public class TenantException extends BaseException {

    public TenantException(String code, Object[] args)
    {
        super("tenant", code, args, null);
    }

    public static TenantException TenantPackageNotExistsException(){
        return new TenantException( "tenantPackage.not.exists", null);
    }

    public static TenantException TenantPackageDisableException(String name){
        return new TenantException( "tenantPackage.disable",new Object[]{name});
    }

    public static TenantException TenantNotExistsException(){
        return new TenantException( "tenant.not.exists",null);
    }

    public static TenantException TenantDisableException(String name){
        return new TenantException( "tenant.disable",new Object[]{name});
    }

    public static TenantException GreatTenantAccountException(){
        return new TenantException( "tenant.great.account",null);
    }

    public static TenantException TenantExpireException(){
        return new TenantException( "tenant.expire",null);
    }
}
